Page({
    data: {
        tabTitles: [
            '手机',
            "电脑",
            "平板"
        ],
        tabControlCurrentIndex: 0,
    },
    onTabItemTap(event) {
        const { detail: { currentIndex } = {} } = event;
        this.setData({
            tabControlCurrentIndex: currentIndex,
        })
    },
    onButtonTap() {
        const tabCrolInstance = this.selectComponent(".tab-control")
        console.log(tabCrolInstance);
        tabCrolInstance?.test(2);
    }
})